package com.ruoyi.baselibrary.infobasespecialist.service.impl;

import java.util.List;

import com.ruoyi.baselibrary.infobasespecialist.domain.InfoBaseSpecialist;
import com.ruoyi.baselibrary.infobasespecialist.mapper.InfoBaseSpecialistMapper;
import com.ruoyi.baselibrary.infobasespecialist.service.IInfoBaseSpecialistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 专家信息Service业务层处理
 *
 * @author ruoyi
 * @date 2022-01-12
 */
@Service
public class InfoBaseSpecialistServiceImpl implements IInfoBaseSpecialistService {
    @Autowired
    private InfoBaseSpecialistMapper infoBaseSpecialistMapper;

    /**
     * 查询专家信息
     *
     * @param id 专家信息主键
     * @return 专家信息
     */
    @Override
    public InfoBaseSpecialist selectInfoBaseSpecialistById(Long id) {
        return infoBaseSpecialistMapper.selectInfoBaseSpecialistById(id);
    }

    /**
     * 查询专家信息列表
     *
     * @param infoBaseSpecialist 专家信息
     * @return 专家信息
     */
    @Override
    public List<InfoBaseSpecialist> selectInfoBaseSpecialistList(InfoBaseSpecialist infoBaseSpecialist) {
        return infoBaseSpecialistMapper.selectInfoBaseSpecialistList(infoBaseSpecialist);
    }

    /**
     * 新增专家信息
     *
     * @param infoBaseSpecialist 专家信息
     * @return 结果
     */
    @Override
    public int insertInfoBaseSpecialist(InfoBaseSpecialist infoBaseSpecialist) {
        return infoBaseSpecialistMapper.insertInfoBaseSpecialist(infoBaseSpecialist);
    }

    /**
     * 修改专家信息
     *
     * @param infoBaseSpecialist 专家信息
     * @return 结果
     */
    @Override
    public int updateInfoBaseSpecialist(InfoBaseSpecialist infoBaseSpecialist) {
        return infoBaseSpecialistMapper.updateInfoBaseSpecialist(infoBaseSpecialist);
    }

    /**
     * 批量删除专家信息
     *
     * @param ids 需要删除的专家信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseSpecialistByIds(Long[] ids) {
        return infoBaseSpecialistMapper.deleteInfoBaseSpecialistByIds(ids);
    }

    /**
     * 删除专家信息信息
     *
     * @param id 专家信息主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseSpecialistById(Long id) {
        return infoBaseSpecialistMapper.deleteInfoBaseSpecialistById(id);
    }
}
